package com.dibang.app.operation.provider;

import com.dibang.app.mvp.abs.AbsProvider;
import com.dibang.app.mvp.abs.BeanFactory;
import com.dibang.app.operation.model.abs.IssueGroupModel;
import com.dibang.app.operation.model.impl.IssueGroupModelImpl;
import com.dibang.app.operation.presenter.abs.IssueGroupPresenter;
import com.dibang.app.operation.presenter.impl.IssueGroupPresenterImpl;
import com.dibang.app.operation.view.abs.IssueGroupView;
import com.dibang.app.operation.view.impl.IssueGroupViewImpl;

/**
 * Created by wxl on 2019/7/24.
 */

public class IssueGroupProImpl extends AbsProvider<IssueGroupView,IssueGroupPresenter,IssueGroupModel> {
    @Override
    public IssueGroupView getView() {
        return BeanFactory.getInstance(IssueGroupViewImpl.class);
    }

    @Override
    public IssueGroupPresenter getPresenter() {
        return BeanFactory.getInstance(IssueGroupPresenterImpl.class);
    }

    @Override
    public IssueGroupModel getModel() {
        return BeanFactory.getInstance(IssueGroupModelImpl.class);
    }

    @Override
    public void onDestroy() {
        BeanFactory.remove(IssueGroupViewImpl.class,IssueGroupPresenterImpl.class,IssueGroupModelImpl.class);
    }
}
